package cn.zebra.dev.other.module.ordersDiscounts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 *
 * @author runnable
 */
@TableName("discounts")
@Getter
@Setter
public class DiscountsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("优惠券编号")
    private String discountsId;

    @ApiModelProperty("优惠券所有者id")
    private Long createId;

    @ApiModelProperty("优惠券额度")
    private BigDecimal amount;

    @ApiModelProperty("优惠券类型 0:全平台;1:店铺;2:商品")
    private Integer discountsType;

    @ApiModelProperty("优惠券起始时间")
    private LocalDateTime createTime;

    @ApiModelProperty("优惠券过期时间")
    private LocalDateTime expiredTime;

    @ApiModelProperty("是否删除")
    private Boolean deleteFlag;

    @ApiModelProperty("优惠状态0有效，1过期")
    private Integer discountsStatus;

    @ApiModelProperty("店铺id")
    private Long shopId;

    @ApiModelProperty("商品id")
    private Long productId;

    @ApiModelProperty("满减额度")
    private BigDecimal reduction;

}
